/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.additional;

import com.sun.lwuit.Image;
import com.sun.lwuit.Label;

/**
 *
 * @author Kvest
 */
public class CellItem extends Label
{
    private int id;

     public CellItem(int id,String text)
     {
         this(id, text, null);
     }

    public CellItem(int id,String text, Image image)
    {
        super(text);
        this.id = id;
        if (image != null)
        {
            setIcon(image);
        }
    }

    public void setText(String value)
    {
        super.setText(value);
    }

    public int getId()
    {
        return id;
    }

    public String toString()
    {
        return getText();
    }
}
